package com.punch.order.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punch.common.model.SuperEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


/**
 * Order-材料订单
 *
 * @author xiaol
 * @version 1.0.0
 * @since 2020/8/5 21:25
 */
@Data
@Accessors(chain = true)
@TableName("material_order")
public class MaterialOrder extends SuperEntity<MaterialOrder> {

    /**
     * 主订单编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 订单状态
     * {@link com.punch.common.enums.order.OrderStatusEnum}
     */
    @TableField("order_status")
    private Integer orderStatus;

    /**
     * 供应商名称
     */
    @TableField("supplier_name")
    private String supplierName;

    /**
     * 供应商id
     */
    @TableField("supplier_id")
    private Long supplierId;

    /**
     * 课程id
     */
    @TableField("course_id")
    private Long courseId;

    /**
     * 课程的班级id
     */
    @TableField("course_class_id")
    private Long courseClassId;

    /**
     * 主订单ID
     */
    @TableField("main_order_id")
    private Long mainOrderId;

    /**
     * 材料订单金额
     */
    @TableField("material_order_fee")
    private Integer materialOrderFee;

    /**
     * 教具名称
     */
    @TableField("material_name")
    private String materialName;

}
